import React, {Component} from 'react'
import { withRouter } from 'react-router-dom';
import { Button, WhiteSpace, WingBlank, Bubble } from 'weaver-mobile';

@withRouter
export default class Test extends Component {
    onClickHandle = verifyType => {
        window.doSecondaryVerify(verifyType, d => Bubble.warning(d), 'mobile');
    }

    render() {
        return (
            <WingBlank>
                <Button type="primary" onClick={() => this.onClickHandle(10)}>动态密码</Button>
                <WhiteSpace />
                <Button type="primary" onClick={() => this.onClickHandle(20)}>动态令牌</Button>
                <WhiteSpace />
                <Button type="primary" onClick={() => this.onClickHandle(30)}>二次密码</Button>
                <WhiteSpace />
                <Button type="primary" onClick={() => this.onClickHandle(40)}>CA</Button>
            </WingBlank>
        )
    }
}